package com.feng.service.impl.impl;

import com.feng.bean.UserAddress;
import com.feng.service.impl.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;
import java.util.List;

public class MainApp {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("consumer.xml");
        OrderService bean = classPathXmlApplicationContext.getBean(OrderService.class);

        List<UserAddress> userAddresses = bean.initOrder("1");

        System.in.read();
    }
}
